<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    li{
      width:500px;
      height:50px;
      background-color: rgb(153, 92, 92);
      margin-top:10px;
    }
  </style>
</head>
<body>
  <div id="app">
    <ul>
      <li v-for="el in arr">
       {{el}}
      </li>
    </ul>
    <hr>
    <ul>
      <li v-for="(el,index) in arr">
        {{index}}
        =>
        {{el}}
      </li>
    </ul>
    <hr>
    <ul>
      <li v-for="el in obj">
        {{ el }}
      </li>
    </ul>
    <hr>
    <ul>
      <li v-for="(el,key,index) in obj">
        {{ el }}  
        =>
        {{key}}
        =>
        {{index}}
      </li>
    </ul>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        arr:['蜘蛛精','玉兔精','黑熊怪','小旋风'],
        obj:{
          name:'小明',
          gender:'男',
          age:18
        }
      }
    })
  </script>
</body>
</html>